﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace ShootThemUp
{
    public enum Etat
    {
        Menu, Jeu, Intro
    }

    public static class Controleur
    {
        public static Rectangle CADRE_JEU = new Rectangle(0, 0, 500, 700);
        public static TimeSpan LIMITE_TIR = new TimeSpan(0, 0, 0, 0, 200);
        public static TimeSpan DateDernierTir { get; set; }


        public static bool estDansCadre(Rectangle conteneur, Rectangle contenu)
        {
            if (contenu.Bottom < conteneur.Top || 
                contenu.Top > conteneur.Bottom || 
                contenu.Right < conteneur.Left || 
                contenu.Left > conteneur.Right)
                return false;
            return true;
        }


    }
}
